<%= form_tag({ :action => "browse" }, :method => "get") do %>
<fieldset>
	<legend>
		Criterios
	</legend>
	<div class="form_row">
		<label for="age">Edad:</label>
		<%= text_field_tag "min_age", params[:min_age], :size => 2 %>
		&ndash;
		<%= text_field_tag "max_age", params[:max_age], :size => 2 %>
	</div>
	<div class="form_row">
		<label for="gender">Genero:</label>
		<%= radio_button_tag :gender, "Male",
		params[:gender] == 'Male',
		:id => "Male" %>Masculino
		<%= radio_button_tag :gender, "Female",
		params[:gender] == 'Female',
		:id => "Female" %>Femenino
	</div>
	<div class="form_row">
		<label for="location">Ubicación:</label>
		Dentro de:
		<%= text_field_tag "miles", params[:miles], :size => 4 %>
		millas de código postal :
		<%= text_field_tag "zip_code", params[:zip_code],
		:size => Spec::ZIP_CODE_LENGTH %>
	</div>
	<%= submit_tag "Buscar", :class => "submit" %>
</fieldset>
<% end %> 